package com.example.egarticle.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAIL(3000, "操作失败"),
    NON_EXISTS(4000, "非法请求，你小子再乱搞小心请你吃牢饭！！！！"),
    USERNAME_EXISTS(5000, "操作异常"),
    USERNAME_PASSWORD_ERROR(1001,"用户名或密码错误"),
    THROW_EXCEPTION(1000,"未知操作异常"),
    VALIDATED_ERRROR(1003,"参数校验失败"),
    NOT_LOGIN(1002,"未登录");

   /* 2000	操作成功	OPERATION_SUCCESS
3000	操作失败	OPERATION_FAILED
1000	用户名被占用	USERNAME_EXISTS
1001	用户名或密码错误	USERNAME_PASSWORD_ERROR
1002	未登录	NOT_LOGIN*/

    private Integer state;
    private String message;
}
